characte = input("请输入:")
letter = 0
num = 0
space = 0
other = 0
result = {}
for i in characte:
    if i.isalpha():
        letter = letter + 1
    elif i.isnumeric():
        num = num + 1
    elif i.isspace():
        space = space + 1
    else:
     other

print('英文字母{}, 数字{}, 空格{}, 其他字符{}'.format(letter,num,space,other))
